package cn.zh.service;

import cn.zh.commons.ResponseResult;
import cn.zh.entity.User;

import javax.servlet.http.HttpServletRequest;

public interface UserService {
    ResponseResult userPage(Integer page, Integer limit, String username);

    ResponseResult addUser(User user);

    ResponseResult getUserById(Integer id);

    ResponseResult editUser(User user);

    ResponseResult deleteUser(Integer[] ids);

    ResponseResult resetPassword(Integer id);

    ResponseResult registerUser(User user);

    ResponseResult login(String username1,String password1,String captcha, HttpServletRequest request);

    ResponseResult getUserByUsername(String username);

    ResponseResult editPersonalPassword(String oldPassword, String password, HttpServletRequest request);
}
